<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@page import="java.util.Date"%>
<%Date date=new Date();%>
<html>
<head>
	<title>补助标准管理</title>
	<meta name="decorator" content="default"/>
	<link href="${ctxCss}/common/listPage.css" type="text/css" rel="stylesheet" />
	<link href="${ctxCss}/common/layerBtn.css" type="text/css" rel="stylesheet"/>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
	<script type="text/javascript" src="${ctxScript}/js/subsidyStandard.js?<%=date.getTime()%>"></script>
	<script type="text/javascript">
        var path="${ctx}";
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>

	<style>
		.btn-yellow{
			color: #ffffff;
			text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
			background-color: #ffc266;
			*background-color: #ffc266;
			border-color: #dd5600 #dd5600 #913800;
			border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
		}
		.btn:hover {
			color: #fff;
		}
	</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/bus/subsidyStandard/findSubsidyStandardList">补助标准</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="subsidyStandard" action="${ctx}/bus/subsidyStandard/findSubsidyStandardList" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>适用企业：</label>
				<form:input path="vaccineEntName" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li><label>动物种类：</label>
				<form:select path="animalTypeCode" class="input-medium">
					<form:option value="" label="请选择"/>
					<form:options items="${fns:getDictList('animalType')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>疫苗品种：</label>
				<form:select path="vaccineTypeCode" class="input-medium">
					<form:option value="" label="请选择"/>
					<form:options items="${fns:getDictList('vaccineType')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>疫苗名称：</label>
				<form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li class="btns">
				<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
				<input id="btnAdd" class="btn btn-yellow" style="background: #ffc266!important;" type="button" value="新增" onclick="subsidyStandardFrom('')"/>
			</li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>序号</th>
				<th>动物种类</th>
				<th>疫苗品种</th>
				<th>疫苗名称</th>
				<th>适用企业</th>
				<th>补助标准</th>
				<shiro:hasPermission name="bus:subsidyStandard:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="subsidyStandard" varStatus="a">
			<tr>
				<td>
					${a.index + 1+(page.pageNo-1)*page.pageSize}
				</td>
				<td>
					${subsidyStandard.animalTypeName}
				</td>
				<td>
					${subsidyStandard.vaccineTypeName}
				</td>
				<td>
					${subsidyStandard.name}
				</td>
				<td>
					${subsidyStandard.vaccineEntName}
					<c:if test="${null == subsidyStandard.vaccineEntName or ''==subsidyStandard.vaccineEntName}">
						全部企业
					</c:if>
				</td>
				<td>
					${subsidyStandard.standardNum}${subsidyStandard.standardTypeName}
				</td>
				<shiro:hasPermission name="bus:subsidyStandard:edit"><td>
    				<a href="#" onclick="subsidyStandardFrom('${subsidyStandard.id}')">修改</a>
					<a href="${ctx}/bus/subsidyStandard/delete?id=${subsidyStandard.id}" onclick="return confirmx('确认要删除该补助标准吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>